{% set page_name = "兑换商品" %}
{% extends "coin_base.html" %}
{% block coin_content %}
<div class="section">
    <div class="section__header">
        <h1 class="section__title">{{ _('兑换商品') }}</h1>
        <div class="section__tools">
            当前硬币数量: {{ udoc['coin_now']|default('0') }}
        </div>
    </div>
    <div class="section__body typo richmedia">
        <p>{{ _('商品名称：') }}{{ goods.name }}</p>
        <p>{{ _('商品价格：') }}{{ goods.price}}</p>
        <form method="post">
            {{ form.form_text({
                label:'商品数量',
                name:'num',
                value:'1',
                autofocus:true,
                required:true
                }) }}
            <div class="row">
                <div class="columns">
                    <button type="submit" class="rounded primary button">
                        {{ _('兑换') }}
                    </button>
                    <button type="button" class="rounded button" onclick="window.history.go(-1)">
                        {{ _('Cancel') }}
                    </button>
                </div>
            </div>
        </form>
    </div>
</div>
{% endblock %}
